<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width,initial-scale=1.0">
    <link rel="icon" href="<%= BASE_URL %>favicon.ico">
    <title>lottery-vue</title>
  </head>
  <script>
  function getFontSize() {
    let cliWidth = document.documentElement.clientWidth || document.body.clientWidth
    let fontSize = cliWidth / 10
    document.documentElement.style.fontSize = fontSize + 'px'
    window.addEventListener('resize', (e) => { // 监听分辨率变化
      let cliWidth = document.documentElement.clientWidth || document.body.clientWidth
      let fontSize = cliWidth / 10
      document.documentElement.style.fontSize = fontSize + 'px'
    })
  }
  </script>
  <body onload="getFontSize()">
    <div id="app"></div>
  </body>
</html>
